import { Entity, Column, PrimaryColumn, PrimaryGeneratedColumn, ManyToMany, ManyToOne, JoinColumn, OneToOne , BaseEntity, OneToMany } from 'typeorm';
import { platFormEnum } from './treasury.enum';

@Entity('treasury')
export class Treasury extends BaseEntity {
  @PrimaryGeneratedColumn({ name: 'id' })
  id: number;

  @Column({ name: 'platform' })
  platform: platFormEnum;

  @Column({ name: 'balance' })
  balance: string;

  @Column({ name: 'update_time' })
  update_time: Date;

}
